package javacode.chapter06;

import java.util.Scanner;

public class TestTriangle {
    public static void main(String[] args) {
        Triangle triangle = new Triangle();
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入直角三角形的行高：");
        int h = scanner.nextInt();
        triangle.printTriangle(h);
    }
}
